package com.sunjy.demo1.excel.Entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.Max;
import java.io.Serializable;
import java.util.Date;

/**
 * @Auther: sunjy
 * @Date: 2018/10/19 15:03
 * @Description:
 */
public class UserDetailCheck implements Serializable {

    private static final long serialVersionUID = 6111504774490702101L;
    @Excel(name = "id")
    private  Integer id;

    @Excel(name = "姓名")
    private String name;

    @Excel(name = "性别",replace = { "男_1", "女_2" }, suffix = "生")
    private int sex;

    @Excel(name = "年龄")
    @Max(value = 15,message = "max 最大值不能超过15",groups = {ViliGroupOne.class})
    private int age;

    @Excel(name = "电话号码",width = 22)
    private String phone;

    // 生日
    @Excel(name = "出生日期", format = "yyyy-MM-dd", width = 20)
    private Date birthday;

    @Excel(name = "描述",width = 22,isColumnHidden=true)
    private String desc;

    @Excel(name="图片",type = 2,imageType = 1,savePath = "/img")//在本项目的盘符的根目录下 ex:e:/img
    private String img;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
}
